/*
 * Node.cpp
 * Author: Elias Capito, Yanick Candaux
 * PCM
 */

#include "Node.hpp"
#include <cstring>

namespace pcm {
	LL Node::cons=0;

	Node::Node(BoardInfos *val, Node *next) {
#ifdef CACLUTATE_CONS_AND_DES
		#pragma omp atomic
		cons++;
#endif
		m_item = val;
		m_next = next;
	}
	
	Node::~Node(){
#ifdef CACLUTATE_CONS_AND_DES
		#pragma omp atomic
		cons--;
#endif
	}
	
	
} /* namespace pcm */
